<div class="pressModels view">
<h2><?php  __('Press Model');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $pressModel['PressModel']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $pressModel['PressModel']['name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $pressModel['PressModel']['created']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $pressModel['PressModel']['modified']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Press Model', true), array('action' => 'edit', $pressModel['PressModel']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Press Model', true), array('action' => 'delete', $pressModel['PressModel']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $pressModel['PressModel']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Press Models', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Press Model', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Presses', true), array('controller' => 'presses', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Press', true), array('controller' => 'presses', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Presses');?></h3>
	<?php if (!empty($pressModel['Press'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Name'); ?></th>
		<th><?php __('Offered'); ?></th>
		<th><?php __('Sup Reference'); ?></th>
		<th><?php __('Serial Number'); ?></th>
		<th><?php __('Type'); ?></th>
		<th><?php __('Make'); ?></th>
		<th><?php __('Model'); ?></th>
		<th><?php __('Year'); ?></th>
		<th><?php __('Perfect'); ?></th>
		<th><?php __('Colour'); ?></th>
		<th><?php __('Description'); ?></th>
		<th><?php __('Paper Size1'); ?></th>
		<th><?php __('Paper Size2'); ?></th>
		<th><?php __('Photo1'); ?></th>
		<th><?php __('Photo2'); ?></th>
		<th><?php __('Photo3'); ?></th>
		<th><?php __('Photo4'); ?></th>
		<th><?php __('Video'); ?></th>
		<th><?php __('Status Id'); ?></th>
		<th><?php __('In Stock'); ?></th>
		<th><?php __('Sold'); ?></th>
		<th><?php __('Buy Price'); ?></th>
		<th><?php __('Sell Price'); ?></th>
		<th><?php __('Sell Type Id'); ?></th>
		<th><?php __('Available From Date'); ?></th>
		<th><?php __('First Off Date'); ?></th>
		<th><?php __('Condition'); ?></th>
		<th><?php __('Location'); ?></th>
		<th><?php __('Active'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($pressModel['Press'] as $press):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $press['id'];?></td>
			<td><?php echo $press['name'];?></td>
			<td><?php echo $press['offered'];?></td>
			<td><?php echo $press['sup_reference'];?></td>
			<td><?php echo $press['serial_number'];?></td>
			<td><?php echo $press['type'];?></td>
			<td><?php echo $press['make'];?></td>
			<td><?php echo $press['model'];?></td>
			<td><?php echo $press['year'];?></td>
			<td><?php echo $press['perfect'];?></td>
			<td><?php echo $press['colour'];?></td>
			<td><?php echo $press['description'];?></td>
			<td><?php echo $press['paper_size1'];?></td>
			<td><?php echo $press['paper_size2'];?></td>
			<td><?php echo $press['photo1'];?></td>
			<td><?php echo $press['photo2'];?></td>
			<td><?php echo $press['photo3'];?></td>
			<td><?php echo $press['photo4'];?></td>
			<td><?php echo $press['video'];?></td>
			<td><?php echo $press['status_id'];?></td>
			<td><?php echo $press['in_stock'];?></td>
			<td><?php echo $press['sold'];?></td>
			<td><?php echo $press['buy_price'];?></td>
			<td><?php echo $press['sell_price'];?></td>
			<td><?php echo $press['sell_type_id'];?></td>
			<td><?php echo $press['available_from_date'];?></td>
			<td><?php echo $press['first_off_date'];?></td>
			<td><?php echo $press['condition'];?></td>
			<td><?php echo $press['location'];?></td>
			<td><?php echo $press['active'];?></td>
			<td><?php echo $press['created'];?></td>
			<td><?php echo $press['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'presses', 'action' => 'view', $press['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'presses', 'action' => 'edit', $press['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'presses', 'action' => 'delete', $press['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $press['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Press', true), array('controller' => 'presses', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
